<meta charset="utf-8">
	<input type="hidden" name="interfaceId" id="interfaceId" value="${interfaceId!}">
	<input type="hidden" name="appId" id="appId" value="${appId!}">
	
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
	<span class="l"> <a href="javascript:;" onclick="interface_update('编辑接口信息','${basePath}/intefaces/edit.do','','310','${interfaceId!}')" class="btn btn-primary radius">
	<i class="Hui-iconfont">&#xe600;</i> 修改接口  </a></span>
	<span class="l"> <a href="javascript:;" onclick="interface_test('${interfaceId!}')" class="btn btn-primary radius">
	<i class="Hui-iconfont">&#xe600;</i> 接口测试  </a></span>
	<span class="l"> <a href="javascript:;" onclick="interface_delete('${interfaceId!}')" class="btn btn-primary radius">
	<i class="Hui-iconfont">&#xe600;</i> 接口删除  </a></span>
	 </div>
	<h3>接口详情</h3>
	<div class="mt-20">
		<table id="interfaceList" class="table table-border table-bordered table-bg table-hover">
			<thead>
				<#if interfaceLists?? && interfaceLists?size gt 0>
					<#list interfaceLists as dl >
							接口名称：<tr>${dl.info.interfaceName!}</tr><br>
							请求url：<tr>${dl.info.reqUrl!}</tr>	<br>
							请求类型：<tr>${dl.info.reqType!}</tr>	<br>
							接口描述：<tr>${dl.info.interfaceDesc!}</tr><br>
							创建时间：<tr>${dl.info.createTime!?string('yyyy-MM-dd HH:MM:ss')}</tr>	<br>
					</#list>
				</#if>
			</thead>
		</table>
	</div>
	<div  class="mt-20" id="reqDiv">
		<h3>请求参数列表</h3>
			<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a href="javascript:;" onclick="reqParam_add('添加请求参数','${basePath}/InterfaceParam/jumpEditOrAdd.do','','310')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加请求参数</a></span> </div>
			<table id="reqParamList" class="table table-border table-bordered table-bg table-hover">
				<thead>
					<tr class="text-c">
						<th width="170">变量名</th>
						<th width="250">描述</th>
						<th width="100">类型</th>
						<th>备注</th>
						<th width="100">创建时间</th>
						<th width="40">操作</th>
					</tr>
				</thead>
			<tbody>
				<#if interfaceLists.params?? && interfaceLists.params?size gt 0>
					<#list interfaceLists.params as dl >
						<tr class="text-c" >
						<#if dl.paramType==1>
							<td>${dl.paramName!}</td>
							<td>${dl.paramDesc!}</td>
							<td>输入</td>
							<td>${dl.paramRemark!}</td>
							<td>${dl.createTime!?string('yyyy-MM-dd HH:MM:ss')}</td>	
							<td class="td-manage">
							<a title="编辑" href="javascript:;" onclick="reqParam_update('编辑请求参数','${basePath}/InterfaceParam/jumpEditOrAdd.do','','310','${dl.id!}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
						
							<a title="删除" href="javascript:;" onclick="respParam_delete(${dl.id!})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
						</#if>
						</tr>
						
					</#list>
					</#if>
			</tbody>
		</table>
	</div>
	<div class="mt-20" id="respDiv">
	<h3>响应参数列表</h3>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a href="javascript:;" onclick="respParam_add(' 添加响应接口参数','${basePath}/InterfaceParam/jumpEditOrAdd.do','','310')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加响应接口参数</a></span> </div>
		<table id="respParamList"class="table table-border table-bordered table-bg table-hover">
			<thead>
				<tr class="text-c">
					<th width="170">变量名</th>
					<th width="250">描述</th>
					<th width="100">类型</th>
					<th>备注</th>
					<th width="100">创建时间</th>
					<th width="40">操作</th>
				</tr>
			</thead>
			<tbody>
				<#if interfaceLists.params?? && interfaceLists.params?size gt 0>
					<#list interfaceLists.params as dl >
						<tr class="text-c" >
						<#if dl.paramType==2>
							<td>${dl.paramName!}</td>
							<td>${dl.paramDesc!}</td>
							<td>输出</td>
							<td>${dl.paramRemark!}</td>
							<td>${dl.createTime!?string('yyyy-MM-dd HH:MM:ss')}</td>	
							<td class="td-manage">
							<a title="编辑" href="javascript:;"  onclick="respParam_update('编辑响应参数','${basePath}/InterfaceParam/jumpEditOrAdd.do','','310','${dl.id!}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
							<a title="删除" href="javascript:;" onclick="respParam_delete(${dl.id!})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
						</#if>
						</tr>
						
					</#list>
					</#if>
			</tbody>
		</table>
	</div>